package com.oig.sys.workflow.service;


import com.oig.sys.workflow.dto.FlowInstanceDto;
import com.oig.sys.workflow.vo.FlowInstanceVo;

/**
 * @author wuxl
 */
public interface ITbFlowInstanceService {


    FlowInstanceVo addOrUpdate(FlowInstanceDto flowInstanceDto);

    void updateSubResult(Integer id, String instanceId, String rspMsg);

    FlowInstanceVo cancelFlowByBiz(String bizType, String bizId);
    void doCancel(Integer id);

    FlowInstanceVo getFlowByBiz(String bizType, String bizId);

    FlowInstanceVo updateFlowInstanceStatus(String flowCode, String instanceId, String instanceStatus);

    void updateNotifyStatus(Integer id, String notifyStatus);

    FlowInstanceVo getById(Integer id);
}
